#include <sstream>

#include "Book.h"
#include "DB.h"

using namespace std;

namespace lib {

  void Book::setId(const wchar_t* id) { id_ = id; }
  void Book::setIsbn(const wchar_t* isbn) { isbn_ = isbn; }
  void Book::setTitle(const wchar_t* title) { title_ = title; }
 
  wstring Book::id() const        { return id_;    }
  wstring Book::isbn() const      { return isbn_;  }
  wstring Book::title() const     { return title_; }
  wstring Book::to_string() const { return id_ + L"(" + isbn_ + L")" + title_; }

}
